<?php

namespace Projet\GestionUtilisateurBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class InfosController extends Controller
{
    public function indexAction($id)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('BackOfficeBundle:Utilsateur')->find($id);

        return $this->render('GestionUtilisateurBundle:Infos:infos.html.twig', array(
            'entity' => $entity,
        ));
    }
}
